import ReactDOM from 'react-dom'
import classNames from 'classnames'
import './index.css'
const isActive = true
const isBlock = true
// 产生类名
const className = classNames('button', {
  active: isActive,
  block: isBlock
})
const element = (
  <span className={className}>按钮</span>
)
ReactDOM.render(element, document.getElementById('root'))